package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class RightsClause {

    private int beginIndex;
    private int endIndex;
    private boolean sqlSecurityInvoker;
    private boolean sqlSecurityDefiner;

    public RightsClause(int beginIndex,
                        int endIndex,
                        boolean sqlSecurityInvoker,
                        boolean sqlSecurityDefiner) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.sqlSecurityInvoker = sqlSecurityInvoker;
        this.sqlSecurityDefiner = sqlSecurityDefiner;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isSqlSecurityInvoker() {
        return sqlSecurityInvoker;
    }

    public boolean isSqlSecurityDefiner() {
        return sqlSecurityDefiner;
    }

}
